/*Copyright (C) 2009 - 2011 MASSART GAUTHIER and Careil Baptiste

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MD5_HEADER
# define MD5_HEADER

# ifndef WIN32
#  include <openssl/md5.h>
# else
unsigned char *MD5(PBYTE d, unsigned long n, unsigned char *md);
# endif
# define MD5_DIGEST_LENGHT 16


char to_hex_ch(unsigned char c);
void convert_md5_to_ascii(char ascii[33], unsigned char md[MD5_DIGEST_LENGHT]);
short get_md5_file(char *nom_fichier, char ascii[33]);

#endif
